package com.fanbai.score.user.activity;

import android.view.View;

import com.fanbai.score.R;
import com.fanbai.score.common.Manager.ActivityManager;
import com.fanbai.score.common.Utils.JsonUtils;
import com.fanbai.score.common.Utils.SPUtils;
import com.fanbai.score.common.activity.LoginActivity;
import com.fanbai.score.common.base.BaseActivity;
import com.fanbai.score.user.bean.User_Bean;

import butterknife.OnClick;

/**
 * Created by acer on 2017/6/4.
 */

public class Setting_Activity extends BaseActivity{

    @OnClick({R.id.userActivitySetting_feedbackLayout, R.id.userActivitySetting_updataLayout, R.id.userActivitySetting_exitBut})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.userActivitySetting_feedbackLayout:
                jumpToActivity(Feedback_Activity.class);
            break;
            case R.id.userActivitySetting_updataLayout:

            break;
            case R.id.userActivitySetting_exitBut:
                SPUtils.with(ctx).save(SPUtils.KEY_USER_USERINFO, "");
                ctx.jumpToActivity(LoginActivity.class);
                break;
        }
    }
    @Override
    protected int getLayoutID() {
        return R.layout.user_activity_setting;
    }

    @Override
    public String getTitleName() {
        return "设置";
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }

    @Override
    public int getTitleLeftName() {
        return R.mipmap.back_click;
    }

    @Override
    public void onClickTitleLeft() {
        ActivityManager.getInstance().finishActivity();
    }

}
